import yaml


def read_yaml(path):
    with open(path,'r',encoding='utf-8') as f:
        data = yaml.safe_load(f)

    return data

def write_yaml(path,val_dict):
    with open(path,'a+',encoding='utf-8') as f:
        yaml.dump(val_dict,f,allow_unicode=True)

def clean_yaml(path):
    with open(path,'w',encoding='utf-8') as f:
        ...
